package com.jt.controller;

import com.jt.pojo.ItemDesc;
import com.jt.vo.SysResult;
import com.jt.service.ItemDescService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/item")
public class ItemDescController {
    @Autowired
    private ItemDescService itemDescService;

    // 查询商品描述信息，进行数据回显
    @RequestMapping("/query/item/desc/{itemId}")
    public SysResult findItemDescById(@PathVariable Long itemId){
        ItemDesc itemDesc=itemDescService.findItemDescById(itemId);
        return SysResult.success(itemDesc);
    }

}
